-- GENERATED SPELL FOR [Area 52 Bruiser] --


function spell0_20485(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20485', 5284, 1)
end

function spell1_20485(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20485', 563, 1)
end

function Sorts_20485(pUnit, Event)
local choix_sorts_20485 = math.random(0, 1)
if choix_sorts_20485 == 0 then
pUnit:RegisterEvent('spell0_20485', 1, 1)
end
if choix_sorts_20485 == 1 then
pUnit:RegisterEvent('spell1_20485', 1, 1)
end
end

function mob20485_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20485', math.random(1500, 3000), 1)
end

function mob20485_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20485_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20485_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20485, 1, 'mob20485_Action')
RegisterUnitEvent(20485, 2, 'mob20485_Leave')
RegisterUnitEvent(20485, 3, 'mob20485_Kill')
RegisterUnitEvent(20485, 4, 'mob20485_Die')
